package com.rds.common.mail;

/**
 * @author weny.yang
 * @ClassName: User
 * @Description:发件人/收件人/抄送人/密送人
 * @date 2022年05月27日
 */
public class EmailUser {
    private String name;// 昵称
    private String address;// 邮箱地址
    private String password;// 发件人密码(发件人需要，收件人/抄送人/密送人不需要)

    /**
     * 构造函数 User.发件人
     */
    public EmailUser(String name, String address, String password) {
        this.name = name;
        this.address = address;
        this.password = password;
    }
    public EmailUser(String address,String password) {
        this.address = address;
        this.password = password;
    }

    /**
     * 构造函数 User.收件人/抄送人/密送人
     */
    public EmailUser(String address) {
        this.address = address;
    }

    public EmailUser() {

    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String toString() {
        return "{name=" + name + ",address=" + address + "}";
    }

}
